package com.amsp.oa.oademo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("fixed_asset_label")
@ApiModel(value = "固定资产标签")
public class FixedAssetLabel {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("标签编号")
    private String labelNo;

    @ApiModelProperty("是否电器")
    private Boolean isElectrical;

    @ApiModelProperty("是否工具")
    private Boolean isTool;

    @ApiModelProperty("是否其他")
    private Boolean isOther;

    @ApiModelProperty("申请单位")
    private String applicationUnit;

    @ApiModelProperty("购买日期")
    private LocalDate purchaseDate;

    @ApiModelProperty("资产名称")
    private String assetName;

    @ApiModelProperty("资产编号")
    private String assetNumber;

    @ApiModelProperty("型号")
    private String model;

    @ApiModelProperty("规格")
    private String specification;

    @ApiModelProperty("存放地点")
    private String storageLocation;

    @ApiModelProperty("保管人")
    private String custodian;

    @ApiModelProperty("保管人签名")
    private String custodianSignature;

    @ApiModelProperty("财务管理部意见")
    private String financeOpinion;

    @ApiModelProperty("部门主管意见")
    private String departmentSupervisorOpinion;

    @ApiModelProperty("总裁/董事长意见")
    private String presidentOpinion;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;
}